{temp('html/recruit/pc/head')}

	<script>
	function gbdz(id,nn,cc){//改变地址
		$.post('{$_url}/?act=get_diqu',{id:id},function(data){
			$("#"+nn).html(data);
			if(cc != ''){
				$("#"+cc).html('<option value="0">请选择</option>');
			}
		});
	}
	</script>
</head>
<body>
	{temp('html/recruit/pc/zjia/toubu')}
		<!--主体内容-->
		<div class="w_bai dis_inline t_m10 t_c">
			<!--详细-->
			<div class="w_1100 auto_0">
				<!--左侧-->
				<div class="w_286 f_l c_656565 bc_FFF bor_C6 xddw" style="margin-top:-61px">
					<!--右阴影图片-->
					<div class="f_r xddw" style="margin-right:-38px;margin-top:-1px">
						<img src="{$style}/images/yinying_you2.png">
					</div>
					<!--右阴影图片结束-->
					<!--标题-->
					<div class="h_50 l_h50 f_s18 bc_127ABF c_FFF t_l">
						<span class="l_m20">职位管理</span>
					</div>
					<!--标题结束-->
					<!--列表-->
					<div id="geren_zuo">
						<ul>
							<li id="list2">
								<div class="f_l shoudaojianli"></div>
								<div class="dis_inline l_m10">
									<a href="{$_url}/?act=job&met=zjgw_gl">职位管理</a>
								</div>
							</li>
							<div class="bor_C6 bor_di_none t_m5"></div>

							<li id="list">
								<div class="f_l t_m3 fabu2"></div>
								<div class="dis_inline l_m7">
									<a href="{$_url}/?act=job&met=zjgw_fb">发布新职位</a>
								</div>
							</li>
							<div class="bor_C6 bor_di_none t_m5"></div>
						</ul>
					</div>
					<!--列表结束-->
				</div>
				<!--左侧结束-->
				<!--右侧-->
				<div class="w_804 l_m5 f_r bc_FFF bor_C6 t_l">
					<!--标题-->
					<div class="t_m15 l_m20">
						<span class="f_s20 c_323131">发布新职位</span>
						<span class="c_7D7D7D">(请先选择全职或者兼职)</span>
					</div>
					<!--标题结束-->
					<!--分割线-->
					<div class="bor_C6 bor_di_none t_m10"></div>
					<!--分割线结束-->
					<!--全职兼职标题-->
					<div class="w_bai t_m30 dis_inline">
						<div class="f_l w_286">&nbsp;</div>
						<div id="zhuce" class="f_l w_80 h_60 l_h60 t_c f_s20 bor_EBEB b_rad5 point">
							<a href="{$_url}/?act=job&met=zjgw_fb">全职</a>
						</div>
						<div id="zhuce" class="f_l l_m20 w_80 h_60 l_h60 t_c f_s20 bor_127ABF b_rad5 point">
							<a href="{$_url}/?act=job&met=zjgw_fbjz">兼职</a>
						</div>
						<div class="f_l xuanzhong" style="margin-left:-39px;_margin-left:-38px"></div>
					</div>
					<!--全职兼职标题结束-->
					<!--内容-->
					<div class="t_m20 l_m20 c_656565">
						<!--基本信息-->
						<div class="w_bai t_m25">
							<!--图标及提示字-->
							<div class="w_bai dis_inline">
								<div class="mulu f_l t_m3 l_m20"></div>
								<div class="f_l l_m5 f_s18 c_323131">基本信息</div>
							</div>
							<!--图标及提示字结束-->
							<!--内容-->
							<div class="t_m15 l_m40 dis_inline">
								<!--职业类别-->
								<div class="w_bai t_m15 dis_inline">
									<div class="f_l t_m8 l_m25">
										<span class="c_FF4700 l_m10">*</span>
										<span class="c_656565">职业类别</span>
									</div>
									<div class="f_l" style="margin-left:10px!important;margin-left:20px">
										<div class="select-outer select-wh200">
											<div class="select-inner">
											<select class="select-h" id="zwlb" onChange="gbzw(this.value)">
												<option value="0">请选择</option>
												{if(@$hy)}
					        					{foreach($hy as $k=>$v)}
					        					<option value="{$v['id']}">{$v['name']}</option>
					        					{/foreach}
					        					{/if}
											</select>
											</div>
										</div>
									</div>
									<div class="f_l l_m10">
										<div class="select-outer select-wh200">
											<div class="select-inner">
											<select id="zhiwei" class="select-h">
							        			<option value="0">请选择</option>
							        			{if(@$zhiwei)}
							        			{foreach($zhiwei as $k=>$v)}
							        			<option value="{$v['id']}">{$v['name']}</option>
							        			{/foreach}
							        			{/if}
							        		</select>
							        		</div>
							        	</div>
									</div>
								</div>
								<!--职业类别结束-->
								<!--职位名称-->
								<div class="w_bai t_m15 dis_inline">
									<div class="f_l t_m8 l_m25">
										<span class="c_FF4700 l_m10">*</span>
										<span class="c_656565">职位名称</span>
									</div>
									<div class="f_l l_m10">
										<input type="text" id="name" class="inp_msg w_355" placeholder="如：销售经理" />
									</div>
								</div>
								<!--职位名称结束-->
								<!--招聘人数-->
								<div class="w_bai t_m15 dis_inline">
									<div class="f_l t_m8 l_m25">
										<span class="c_FF4700 l_m10">*</span>
										<span class="c_656565">招聘人数</span>
									</div>
									<div class="f_l l_m10">
										<input type="text" class="inp_msg f_l" id="number" min="1" value="1"/>
										<span class="f_l t_m8 l_m5">人</span>
									</div>
								</div>
								<!--招聘人数结束-->
								<!--薪资待遇-->
								<div class="w_bai t_m15 dis_inline">
									<div class="f_l t_m8 l_m25">
										<span class="c_FF4700 l_m10">*</span>
										<span class="c_656565">薪资待遇</span>
									</div>
									<div class="f_l" style="margin-left:10px!important;margin-left:20px">
										<div class="select-outer select-wh200">
											<div class="select-inner">
												<select class="select-h" id="money">
													{foreach($xz as $k=>$v)}
													<option>{$v}</option>
													{/foreach}
												</select>
											</div>
										</div>
									</div>
								</div>
								<!--薪资待遇结束-->
								<!--工作地点-->
								<div class="w_bai t_m15 dis_inline">
									<div class="f_l t_m8 l_m25">
										<span class="c_FF4700 l_m10">*</span>
										<span class="c_656565">工作地点</span>
									</div>
									<div class="f_l" style="margin-left:10px!important;margin-left:20px">
										<div class="select-outer select-wh95 f_l">
											<div class="select-inner">
											<select id="sheng" onChange="gbdz(this.value,'shi')" class="select-h">
												<option value="0">请选择</option>
		                                    		{if(@$ssq)}
		                                    		{foreach($ssq as $k=>$v)}
		                                    			<option value="{$v['area_id']}">{$v['area_name']}</option>
		                                    		{/foreach}
		                                    		{/if}
											</select>
											</div>
										</div>
									</div>
									<div class="f_l l_m10">
										<div class="select-outer select-wh95 f_l">
											<div class="select-inner">
											<select id="shi" onChange="gbdz(this.value,'qu')" class="select-h">
												<option value="0">请选择</option>
											</select>
											</div>
										</div>
									</div>
									<div class="f_l l_m10">
										<div class="select-outer select-wh95 f_l">
											<div class="select-inner">
											<select id="qu" class="select-h">
												<option value="0">请选择</option>
											</select>
											</div>
										</div>
									</div>
									<input type="text" class="inp_msg f_l l_m5" placeholder="详细地址" id="zzdd" />
								</div>
								<!--工作地点结束-->
								
								<!--结束日期-->
								<div class="w_bai t_m15 l_m20 dis_inline">
									<div class="f_l t_m8 l_m25">
										<span class="c_656565">结束日期</span>
									</div>
									<div class="f_l l_m10">
										<input class="Wdate" type="text" id="jstime" 
	                            			onfocus="WdatePicker({firstDayOfWeek:0,isShowClear:false,isShowOK:false,isShowToday:false})"/>
									</div>
									<div class="f_l l_m10 t_m8 c_656565">（默认招聘三个月）</div>
								</div>
								<!--结束日期结束-->
								<!--工作时间-->
								<div class="w_bai t_m5 l_m20 dis_inline">
									<div class="f_l t_m8 l_m25">
										<span class="c_656565">工作时间</span>
									</div>
									<div class="f_l t_m8 c_656565" >
										<!--列表-->
										<div id="tab_jianzhi" style="margin-left:10px!important;margin-left:20px;_margin-left:10px">
											<li class="bc_E7E7E7">
												<div class="left1">&nbsp;</div>
												<div class="left2">星期一</div>
												<div class="left3">星期二</div>
												<div class="left4">星期三</div>
												<div class="left5">星期四</div>
												<div class="left6">星期五</div>
												<div class="left7">星期六</div>
												<div class="right">星期日</div>
											</li>
											<li>
												<div class="left1">上午</div>
												<div class="left2"><input type="checkbox" name="jztime" id="chk_1_1" value="1_1" style="margin:12px" /></div>
												<div class="left3"><input type="checkbox" name="jztime" id="chk_2_1" value="2_1"  style="margin:12px" /></div>
												<div class="left4"><input type="checkbox" name="jztime" id="chk_3_1" value="3_1"  style="margin:12px" /></div>
												<div class="left5"><input type="checkbox" name="jztime" id="chk_4_1" value="4_1"  style="margin:12px" /></div>
												<div class="left6"><input type="checkbox" name="jztime" id="chk_5_1" value="5_1"  style="margin:12px" /></div>
												<div class="left7"><input type="checkbox" name="jztime" id="chk_6_1" value="6_1" style="margin:12px" /></div>
												<div class="right"><input type="checkbox" name="jztime" id="chk_7_1" value="7_1"  style="margin:12px" /></div>
											</li>
											<li>
												<div class="left1">下午</div>
												<div class="left2"><input type="checkbox" name="jztime" id="chk_1_2" value="1_2"  style="margin:12px" /></div>
												<div class="left3"><input type="checkbox" name="jztime" id="chk_2_2" value="2_2"  style="margin:12px" /></div>
												<div class="left4"><input type="checkbox" name="jztime" id="chk_3_2" value="3_2"  style="margin:12px" /></div>
												<div class="left5"><input type="checkbox" name="jztime" id="chk_4_2" value="4_2"  style="margin:12px" /></div>
												<div class="left6"><input type="checkbox" name="jztime" id="chk_5_2" value="5_2"  style="margin:12px" /></div>
												<div class="left7"><input type="checkbox" name="jztime" id="chk_6_2" value="6_2"  style="margin:12px" /></div>
												<div class="right"><input type="checkbox" name="jztime" id="chk_7_2" value="7_2"  style="margin:12px" /></div>
											</li>
											<li>
												<div class="left1">晚上</div>
												<div class="left2"><input type="checkbox" name="jztime" id="chk_1_3" value="1_3" style="margin:12px" /></div>
												<div class="left3"><input type="checkbox" name="jztime" id="chk_2_3" value="2_3"  style="margin:12px" /></div>
												<div class="left4"><input type="checkbox" name="jztime" id="chk_3_3" value="3_3"  style="margin:12px" /></div>
												<div class="left5"><input type="checkbox" name="jztime" id="chk_4_3" value="4_3" style="margin:12px" /></div>
												<div class="left6"><input type="checkbox" name="jztime" id="chk_5_3" value="5_3"  style="margin:12px" /></div>
												<div class="left7"><input type="checkbox" name="jztime" id="chk_6_3" value="6_3"  style="margin:12px" /></div>
												<div class="right"><input type="checkbox" name="jztime" id="chk_7_3" value="7_3"  style="margin:12px" /></div>
											</li>
										</div>
										<!--列表结束-->
									</div>
								</div>
								<!--工作时间结束-->
								<!--工作内容-->
								<div class="w_bai t_m15 l_m20 dis_inline">
									<div class="f_l t_m8 l_m25">
										<span class="c_656565">工作内容</span>
										<span class="dis_block t_m5 l_m12 c_E06300 point" onClick="showList('fanli')">
											范例？
										</span>
									</div>
									<!--隐藏范例-->
									<div class="f_l w_340 h_176 t_m55 l_h25 bor_C6 bc_EEE c_323232 jddw zIndex_2"
											id="fanli" style="display:none;margin-left:35px!important;margin-left:-555px">
										<P class="l_m10 r_m20 t_m10">1.负责公司网站开发。</P>
										<p class="l_m10 r_m20">2.负责公司对外接口系统开发。</p>
										<p class="l_m10 r_m20">3.公司各部门之间的技术沟通，协调。</p>
										<p class="l_m10 r_m20">4.负责审核业务部分报送的单据及制单。</p>
										<p class="l_m10 r_m20">5.把握部门的工作进度，定期汇报，改善部门工作绩效。</p>
									</div>
									<!--隐藏范例结束-->
									<div class="f_l l_m10 xddw zIndex_1">
										<textarea rows="3" cols="20" class="w_492 h_150" id="other"
											placeholder="请输入10字以上的详细工作内容描述"></textarea>
									</div>
								</div>
								<!--工作内容结束-->
							</div>
							<!--内容结束-->
						</div>
						<!--基本信息结束-->
						<!--应聘条件-->
						<div class="w_bai t_m25">
							<!--图标及提示字-->
							<div class="w_bai dis_inline">
								<div class="duoren f_l t_m3 l_m20"></div>
								<div class="f_l l_m5 f_s18 c_323131">应聘条件</div>
							</div>
							<!--图标及提示字结束-->
							<!--内容-->
							<div class="t_m15 l_m40 dis_inline">
								<!--性别-->
								<div class="w_bai t_m15 dis_inline">
									<div class="f_l t_m8 l_m52" style="_margin-left:39px">
										<span class="c_656565">性别</span>
									</div>
									<div class="f_l" style="margin-left:10px!important;margin-left:20px">
										<div class="select-outer select-wh200">
											<div class="select-inner">
											<select class="select-h" id="sex">
												<option>不限</option>
												<option>男</option>
												<option>女</option>
											</select>
											</div>
										</div>
									</div>
								</div>
								<!--性别结束-->
								<!--年龄-->
								<div class="w_bai t_m15 dis_inline">
									<div class="f_l t_m8 l_m52" style="_margin-left:39px">
										<span class="c_656565">年龄</span>
									</div>
									<div class="f_l l_m10">
										<input type="text" class="inp_msg" placeholder="" id="age" value="0" />
									</div>
									<div class="f_l l_m10 t_m8 c_656565">("0"表示不限制)</div>

								</div>
								<!--年龄结束-->
								<!--身高-->
								<div class="w_bai t_m15 dis_inline">
									<div class="f_l t_m8 l_m52" style="_margin-left:39px">
										<span class="c_656565">身高</span>
									</div>
									<div class="f_l l_m10">
										<input type="text" class="inp_msg" placeholder="" id="height" value="0" />
									</div>
									<div class="f_l l_m10 t_m8 c_656565">CM("0"表示不限制)</div>
								</div>
								<!--身高结束-->
							</div>
							<!--内容结束-->
						</div>
						<!--应聘条件结束-->
						<!--联系方式-->
						<div class="w_bai t_m25">
							<!--图标及提示字-->
							<div class="w_bai dis_inline">
								<div class="lianxi f_l t_m5 l_m20"></div>
								<div class="f_l l_m5 f_s18 c_323131">联系方式</div>
							</div>
							<!--图标及提示字结束-->
							<!--内容-->
							<div class="t_m15 l_m40 dis_inline">
								<!--联系人-->
								<div class="w_bai t_m15 dis_inline">
									<div class="f_l t_m8 l_m39" style="_margin-left:32px">
										<span class="c_FF4700 l_m10">*</span>
										<span class="c_656565">联系人</span>
									</div>
									<div class="f_l l_m10">
										<input type="text" class="inp_msg" id="linkman" />
									</div>
								</div>
								<!--联系人结束-->
								<!--手机号码-->
								<div class="w_bai t_m15 dis_inline">
									<div class="f_l t_m8 l_m25">
										<span class="c_FF4700 l_m10">*</span>
										<span class="c_656565">手机号码</span>
									</div>
									<div class="f_l l_m10">
										<input type="text" class="inp_msg" id="phone" />
									</div>
									<div class="f_l l_m10 t_m8 c_656565">不同职位可以填写不同的联系方式</div>
								</div>
								<!--手机号码结束-->
								<!--邮箱-->
								<div class="w_bai t_m15 l_m20 dis_inline">
									<div class="f_l t_m8 l_m45" style="_margin-left:35px">
										<span class="c_656565">&nbsp;&nbsp;邮箱</span>
									</div>
									<div class="f_l l_m10">
										<input type="text" class="inp_msg" id="email" />
									</div>
									<div class="f_l l_m10 t_m6">
										<input type="radio" name="tongzhi" checked="checked" />接受邮件通知
										<input type="radio" name="tongzhi" class="l_m20" />不接受邮件通知
									</div>
								</div>
								<!--邮箱结束-->
								<!--同时设置-->
								<div class="w_bai t_m25 l_m20 dis_inline">
									<div class="f_l t_m8 l_m25">
										<span class="c_656565">是否发布</span>
									</div>
									<div class="f_l t_m8 c_656565" style="margin-left:10px!important;margin-left:15px">
										<input type="radio" name="issue" checked="checked" value="1" />是
										<input type="radio" name="issue" class="l_m20" value="2" />否
									</div>
								</div>
								<!--同时设置结束-->
							</div>
							<!--内容结束-->
							<!--确认按钮-->
							<div class="w_bai t_m40 b_m50 dis_inline">
								<div class="f_l w_120">&nbsp;</div>
								<div class="f_l w_200 h_35 l_h35 bc_E16400 c_FFF t_c point" 
									style="margin-left:11px!important;margin-left:21px;_margin-left:45px"  onclick="bc()">
									保存立即发布
								</div>
							</div>
							<!--确认按钮结束-->
							<script type="text/javascript">
        	function bc(){
        		var name = $("#name").val();
        		if(name == ''){ alert('请填写岗位名称!');return;}
        		var zwlb = $("#zwlb").val();
        		if(zwlb == ''){ alert('请选择职位类型!');return;}
        		var zhiwei = $("#zhiwei").val();
        		if(zhiwei == ''){ alert('请选择职位类型!');return;}
        		var number = $("#number").val(); 
        		if(number == ''){ alert('请填写招聘人数!');return;}
        		var money = $("#money").val(); 
        		if(money == ''){ alert('请选择薪资!');return;}
        		var sheng = $("#sheng").val(); 
        		if(sheng == ''){ alert('请填写工作地点!');return;}
        		var shi = $("#shi").val(); 
        		if(shi == ''){ alert('请填写工作地点!');return;}
        		var qu = $("#qu").val(); 
        		/* if(qu == ''){ alert('请填写工作地点!');return;} */
        		var linkman = $("#linkman").val();
        		if(linkman == ''){ alert('请填写联系人!');return;}
        		var zzdd = $("#zzdd").val();
        		/* if(zzdd == ''){ alert('请填写联系地址!');return;} */
        		var phone = $("#phone").val();
        		if(phone == ''){ alert('请填写联系电话!');return;}
        		var sex = $("#sex").val();;
        		var age = $("#age").val();
        		var height = $("#height").val();
        		var jstime = $("#jstime").val();
        		//if(jstime == ''){ alert('请填写结束时间!');return;}
        		var other = $("#other").val();
        		var email = $("#email").val();
        		var issue = $("input:radio[name=issue]:checked").val();
        		var check = $('input:checkbox[name="jztime"]:checked');
        		var jztime = ',';
        		check.each(function(i){
        			jztime += this.value + ',';
        		});
        		if(jztime == ','){
        			jztime = '';
        		}
        		$.post('{$_url}/?act=job&met=zjfb_sck',{zt:1,name:name,zwlb:zwlb,zhiwei:zhiwei,number:number,money:money,
        			sheng:sheng,shi:shi,qu:qu,linkman:linkman,address:zzdd,phone:phone,jstime:jstime,
        			other:other,sex:sex,height:height,age:age,email:email,issue:issue,jztime:jztime},function(data){
         				if(data == '发布成功!'){
         					top.location.href="{$_url}/?act=job&met=zjgw_gl";
         				}else{
         					alert(data);
         				}
        			});
        		}
        	
	        	function gbzw(id){//改变职位
	        		$.post('{$_url}/?act=get_zhiwei',{id:id},function(data){
	        			$("#zhiwei").html(data);
	        		});
	        	}
       		 </script>
						</div>
						<!--联系方式结束-->
					</div>
					<!--内容结束-->
				</div>
				<!--右侧结束-->
			</div>
			<!--详细结束-->
		</div>
		<!--主体内容结束-->

{temp('html/recruit/pc/foot')}